package com.sptus.mapper.master;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sptus.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: spt_dev_log
 * @Author: jeecg-boot
 * @Date:   2025-01-18
 * @Version: V1.0
 */
@Data
@TableName("spt_dev_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="spt_dev_log对象", description="spt_dev_log")
public class SptDevLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**deviceId*/
	@Excel(name = "deviceId", width = 15)
    @ApiModelProperty(value = "deviceId")
    private String deviceId;
	/**logInfo*/
	@Excel(name = "logInfo", width = 15)
    @ApiModelProperty(value = "logInfo")
    private String logInfo;
	/**status*/
	@Excel(name = "status", width = 15)
    @ApiModelProperty(value = "status")
    private Integer status;
	/**logType*/
	@Excel(name = "logType", width = 15)
    @ApiModelProperty(value = "logType")
    private String logType;
	/**userType*/
	@Excel(name = "userType", width = 15)
    @ApiModelProperty(value = "userType")
    private Integer userType;
	/**userId*/
	@Excel(name = "userId", width = 15)
    @ApiModelProperty(value = "userId")
    private String userId;

    /**userId*/
    @Excel(name = "userName", width = 15)
    @ApiModelProperty(value = "userName")
    private String userName;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
    private Integer updateBy;
	/**ip*/
	@Excel(name = "ip", width = 15)
    @ApiModelProperty(value = "ip")
    private String ip;
}
